<template>
  <div class="SubstationDetailsPopUp">
    <div class="SubstationDetailsPopUp-left ">
      <div class="Terr borderStyle">
        <el-row>
          <el-col :span="14">
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-col>
          <el-col :span="10">
            <el-button class="btn" type="primary" icon="el-icon-search"
              >查询</el-button
            >
          </el-col>
        </el-row>
        <el-row class="row-to">
          <el-col :span="24">
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-col>
        </el-row>
        <div>
          <el-tree
            :data="data"
            icon-class="custom"
            :props="defaultProps"
            @node-click="handleNodeClick"
          ></el-tree>
        </div>
      </div>
      <div class="btn-foot">
        <el-button class="btn" type="primary" icon="el-icon-search"
          >确定报告</el-button
        >
        <el-button class="btn" type="primary" icon="el-icon-search"
          >刷新</el-button
        >
      </div>
    </div>
    <div class="SubstationDetailsPopUp-right borderStyle">
      <el-form ref="form" class="form" :model="form" label-width="80px">
        <el-row>
          <el-col :span="6">
            <el-form-item label="巡检点位">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="巡检时间">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="人工核实">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="识别结论">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <div class="vode">视频</div>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";

@Component
export default class SubstationDetailsPopUp extends Vue {
  public options: Array<any> = [];
  private value = '';
  //树 数据
  public data: Array<any> = [
    {
      label: "一级 1",
      children: [
        {
          label: "二级 1-1",
          children: [
            {
              label: "三级 1-1-1",
            },
          ],
        },
      ],
    },
    {
      label: "一级 2",
      children: [
        {
          label: "二级 2-1",
          children: [
            {
              label: "三级 2-1-1",
            },
          ],
        },
        {
          label: "二级 2-2",
          children: [
            {
              label: "三级 2-2-1",
            },
          ],
        },
      ],
    },
    {
      label: "一级 3",
      children: [
        {
          label: "二级 3-1",
          children: [
            {
              label: "三级 3-1-1",
            },
          ],
        },
        {
          label: "二级 3-2",
          children: [
            {
              label: "三级 3-2-1",
            },
          ],
        },
      ],
    },
  ];
  //查询form
  public form: any = {};
  public defaultProps: any = {
    children: "children",
    label: "label",
  };

  handleNodeClick(data: any) {
    // console.log(data);
  }
}
</script>

<style lang="scss" scoped>
.SubstationDetailsPopUp {
  width: 100%;
  height: 5.8rem;
  display: flex;
  .SubstationDetailsPopUp-left {
    width: 25%;
    .Terr {
      width: 100%;
      height: calc(100% - 0.5rem);
      padding: 0.15rem 0.15rem 0 0.15rem;
    }
    .btn-foot {
      width: 100%;
      height: 0.5rem;
      display: flex;
      justify-content: center;
      align-items: flex-end;
    }
  }
  .SubstationDetailsPopUp-right {
    width: calc(75% - 0.1rem);
    margin-left: 0.1rem;
    .vode {
      width: 100%;
      height: calc(100% - 0.77rem);
    }
  }
  .row-to {
    margin: 0.1rem 0;
  }
}
</style>
<style lang="scss">
.SubstationDetailsPopUp {
  .SubstationDetailsPopUp-left {
    .btn {
      height: 0.36rem;
    }
  }
  .form {
    padding: 0.15rem 0.15rem 0;
  }
}
</style>
